package org.yxt.message.push.config.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;

/**
 * 监听系统停止
 *
 * @author YangXiuteng
 * @time 2020/4/20 9:54
 **/
@Slf4j
public class CloseListener implements ApplicationListener<ContextClosedEvent> {

    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        log.info("应用停止 <===");
    }
}
